<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0%;
        }
        #out{
            border-style:dashed;
            width: 700px;
            overflow: auto;
            margin: auto;
        }
        .a{
            padding: 15px;
            border-color: black;
            border-style: solid;
            margin: 20px;
            float: left;
        }
    </style>
</head>
<body>
    <div id="out">
        <div class="a">
            <img src="img/1.png"><br>
            hello
        </div>
        <div class="a">
            <img src="img/2.png"><br>
            zch is sb
        </div>
        <div class="a">
            <img src="img/3.png"><br>
            zch
        </div>
    </div>
</body>
</html>